<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>
		<div class="width">
			<h:form>
				<table border="0" width="100%">
					<tr>
						<td><h:outputText
								value="Welcome, #{userSession.loggedInUser.firstName}" /></td>
						<td style="text-align: right"><p:selectOneMenu rendered="#{showUserProjectlist}"
								style="text-align:right;" value="#{userSession.projectId}">
								
								<p:ajax event="change" update="#{updateForUserProjects}" />
						
								<f:selectItem itemLabel="Select Project" itemValue="0" />
								<f:selectItems var="project"
									value="#{dtGroupPermissionView.currentUserProjects}"
									itemLabel="#{project.code} : #{project.description}"
									itemValue="#{project.id}" />
							</p:selectOneMenu></td>
					</tr>
				</table>
			</h:form>
		</div>

	</ui:composition>
</body>
</html>